/*
 * Copyright 2011-2020 www.holylin.com
 *
 * All right reserved.
 */
package com.holylin.learning.java.language.time;

import java.util.Timer;
import java.util.TimerTask;

/**
 * @author holylin
 * @since 2012-2-8
 */
public class TestTimerAndTimeTask {

	public static void main(String[] args) {
		Timer timer = new Timer("test timer");
		timer.schedule(new TimerTask() {

			public void run() {
				System.out.println(System.currentTimeMillis());

			}

		}, 1000, 2000);

	}
}
